#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
using namespace std;

class Person {
public:
	int a;
	int b;
	Person operator+(Person a) {
		Person tmp;
		tmp.a = a.a + this->a;
		tmp.b = a.b + this->b;
		return tmp;
	}
};

int main03() {
	Person a;
	a.a = 1;
	a.b = 2;
	Person b;
	b.a = 3;
	b.b = 4;

	Person c = a + b;
	cout << c.a << endl << c.b << endl;

	return 0;
}